<?php

namespace app\logic\main;

use linkphp\Application;

class Login
{

    public function check()
    {
        return Application::db()
            ->table('lp_user')
            ->field('*')
            ->where("user_name = '" . Application::input('post.account')
                . "' and pass_word = '" . md5(md5(Application::input('post.password'))) . "'")
            ->find();
    }

}